﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using DevExpress.XtraBars.Ribbon;

namespace DxChartTestApp2.gallery
{
    public class StockImageGalleryItem : GalleryItem
    {
        private bool _Loaded;
        private bool _loading = false;
        Image realImage;

        public bool loading
        {
            get
            {
                return _loading;
            }
        }
        public bool loaded
        {
            get
            {
                return _Loaded;
            }
        }
        public void init()
        {
            if (_loading)
                return;
            _loading = true;
            Image img = Image.FromFile(imageFileName);
            realImage = img;
            this.Image = img;
            _Loaded = true;
        }
        String imageFileName = "";
        public void setImageFileName(String n)
        {
            imageFileName = n;
        }

    }
}
